package com.zros.modules.business.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author lvkai
 * @since 2020-04-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_info_keyword")
@ApiModel(value="Keyword对象", description="")
public class Keyword extends Model<Keyword> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "关键词id")
    @TableId(value = "word_id", type = IdType.ID_WORKER)
    private Long wordId;

    @ApiModelProperty(value = "模板id")
    private Long modleId;

    @ApiModelProperty(value = "货比关键词")
    private String goodsWord;

    @ApiModelProperty(value = "拍单关键词")
    private String buyWord;

    @ApiModelProperty(value = "发布单数")
    private String releaseNum;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.wordId;
    }

}
